package com.bai.Mapper;

import com.bai.Pojo.Department;
import com.bai.Pojo.Prisoner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//部门接口
public interface DepartmentMapper {
    //增
    int addDepart(Department department);
    //删,根据Id
    int deleteDepart(Integer  id);
    //查
    List<Department> QueryAll(@Param("departmentname") String departmentname,@Param("offset") int offset, @Param("limit") int limit);
    //改
    int updateDepart(Department department);

    Department getdepartment(@Param("id") int id);
    //数量
    int queryAllPriCount(@Param("departmentname") String departmentname);

    //根据囚犯ID查询推荐介
    Department queryDepartDetailsById(Integer id);




}
